<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "hl_special".
 *
 * @property int $id ID
 * @property int $br_id 行业id
 * @property string $title 专题名称
 * @property string $img_url 专题图片
 * @property string $content 专题内容
 * @property int $sort 排序
 * @property int $status 状态 1启用,0禁用
 * @property string $created_at 创建时间
 * @property string $updated_at 修改时间
 * @property string $deleted_at 删除时间
 */
class HlSpecial extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'hl_special';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['br_id', 'sort', 'status'], 'integer'],
            [['content'], 'required'],
            [['content'], 'string'],
            [['is_self','created_at', 'updated_at', 'deleted_at'], 'safe'],
            [['title', 'img_url'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'br_id' => 'Br ID',
            'title' => '专题名称',
            'img_url' => '封面图',
            'content' => '专题内容',
            'sort' => '排序',
            'status' => 'Status',
            'created_at' => '创建时间',
            'updated_at' => '修改时间',
            'deleted_at' => 'Deleted At',
            'is_self' => '资源来源',
        ];
    }
}
